package com.thientan.service

import com.thientan.export.ExportRequest

class GiaoPhieuThuService extends AbstractService{
	@Override
	protected Long[] getColWidth() {
		return [40, 100, 150] as Long[]
	}

	@Override
	protected String[] getColTitles() {
		return ['STT', 'Mã hợp đồng', 'Số tiền phải thu'] as String[]
	}

	@Override
	protected String[] getColNames() {
		return ['stt', 'maHd', 'tienConLai'] as String[]
	}

	@Override
	@SuppressWarnings("rawtypes")
	protected Class<?>[] getExportColType() {
		return [Integer.class, String.class, BigDecimal.class] as Class<?>[]
	}

	@Override
	void prepareParametersBeforeExport(ExportRequest er){
		er.addParameter("thuNgan", this.exportData?.thuNgan)
		er.addParameter("ngayBanGiao", this.exportData?.ngayBanGiao)
		er.addParameter("tongSoHopDong", this.exportData?.tongSoHopDong)
		er.addParameter("tongSoTienConLai", this.exportData?.tongSoTienConLai)
	}
}
